import FhRequest from './index'

// 获取轮播图
export function getBanners() {
	return FhRequest.get('/banner', { type: 2 })
}

// 获取榜单数据
export function getBangdans(idx) {
	return FhRequest.get('/top/list', {
		idx
	})
}

// 获取歌单
export function getSongMenu(cat = '全部', limit = 6, offset = 0) {
	return FhRequest.get('/top/playlist', {
		cat,
		limit,
		offset
	})
}

// 获取歌单详情
export function getSongDetail(id) {
	return FhRequest.get('/playlist/detail/dynamic', {
		id
	})
}